//
//  ContentComponent.m
//  BaiYing_Thinker
//
//  Created by 鹏 朱 on 15/11/5.
//  Copyright (c) 2015年 XKJH. All rights reserved.
//

#import "ContentComponent.h"
#import "JSONKit.h"

@implementation ContentComponent

-(id)initWithDictionary:(NSDictionary *)contentDic {
    
    if (self = [super init]) {
        
        if (contentDic[@"id"]) {
            _componentId = contentDic[@"id"];
        }
        if (contentDic[@"name"]) {
            _name = contentDic[@"name"];
        }
        if (contentDic[@"url"]) {
            _url = contentDic[@"url"];
        }
        if (contentDic[@"version"]) {
            _version = contentDic[@"version"];
        }
        if (contentDic[@"rule"]) {
            _rule = contentDic[@"rule"];
        }
    }
    
    return self;
}

@end
